<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>邮件</title>
</head>
<body>
<table border="1px" align="center">
	<thead>
		<tr>
			<td>主题</td>
			<td>发件人</td>
			<td>日期</td>
			<td hidden="true">id</td>
		</tr>
	</thead>
	<tbody>
	<!-- @{'javascript:showInfo('+${mail.id}+');'} -->	
		<tr th:each="mail:${mails}">
			<td ><a  th:href="@{'javascript:showInfo(&quot'+${mail.content}+'&quot)'}" th:text="${mail.subject}"></a></td>
			<td th:text="${mail.fro}"></td>
			<td th:text="${mail.recdate}"></td>
			<td hidden="true" th:text="${mail.id}"></td>
		</tr>
	
	</tbody>
</table>

<div align="center" style="margin-top: 20px">
  <textarea rows="30" cols="100" readonly="readonly" id="content">
  		
  </textarea>
</div>


</body>
<script type="text/javascript">
	 function showInfo(content){
		var con =  document.getElementById("content");
		con.innerHTML="";
		con.innerHTML=content;
	 }
</script>
</html>